package mobi.zeedev.flyingsaucer.common.RegexModule.impl;

@SuppressWarnings("serial")
public class ParseException extends Exception {

    String regex;
    Integer flags;
    String data;

    public ParseException(String detailMessage) {
        super(detailMessage);
    }

    public ParseException(String detailMessage, Throwable throwable) {
        super(detailMessage, throwable);
    }

    public ParseException(String detailMessage, String regexIn, Integer flagsIn, String dataIn, Throwable throwable) {
        super(detailMessage, throwable);
        regex = regexIn;
        flags = flagsIn;
        data = dataIn;
    }

    public String getRegex() {
        return regex;
    }

    public void setRegex(String regex) {
        this.regex = regex;
    }

    public Integer getFlags() {
        return flags;
    }

    public void setFlags(Integer flags) {
        this.flags = flags;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ParseException [message=" + this.getMessage() + "data=" + data + ", flags=" + flags + ", regex="
                + regex + "]";
    }

    public String toSimpleString() {
        return "ParseException [message=" + this.getMessage() + ", flags=" + flags + ", regex="
                + regex + "]";
    }


}
